/**
 * Created by yx on 2017/4/8.
 *
 */

function chengeMemberHealthRecord() {

    var memberId = $("#selectMemberId").val();


    $("#main_context").empty();
    $("#main_context").load("/member/healthDiseaseRecordIndex?memberId="+memberId);


}

function setDietDetail(item) {

    $("#diet-detail-context").empty();
    $("#diet-detail-context").load("/member/DietDetailIndex?id="+item);
}

function changeFoodType() {
    var v = $("#calorie").value;
    alert(v.split(",")[1]);
    var calorie = v.split(",")[1];
    $("#calorie").value=calorie;
}